package com.codingman.springdemo3;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;

@Aspect
public class Test3 {

	@AfterReturning(pointcut = "execution(* Foo.k(..))", returning = "result")
	public void myadvice(JoinPoint jp, Object result) {
		System.out.println("Result in advice: " + result);
	}
}
